//
//  Fraction.h
//  02-ClassAndObject
//
//  Created by 曹曹 on 16/7/5.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Fraction : NSObject
@property (nonatomic, assign) NSInteger numerator;
@property (nonatomic, assign) NSInteger demoninator;
- (instancetype)initWithNumerator:(NSInteger)nume denominator:(NSInteger)denom;
+ (instancetype)fractionWithNumerator:(NSInteger)nume denominator:(NSInteger)denom;
- (Fraction *)plusWithFraction:(Fraction *)frac;
- (Fraction *)decreaseWithFraction:(Fraction *)frac;
- (Fraction *)multipleWithFraction:(Fraction *)frac;
- (Fraction *)divideWithFraction:(Fraction *)frac;
- (Fraction *)reduction;
- (void)compareWithFraction:(Fraction *)frac;
@end
